package com.bjpowernode.mvc.model.vo.bid;



import cn.hutool.core.util.PhoneUtil;
import cn.hutool.core.util.StrUtil;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

public class BidUserVO {

    private Integer id;
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS" ,timezone = "Asia/Shanghai")
    private Date bidTime;
    private BigDecimal bigMoney;

    public Integer getId() {
        return id;
    }

    public BidUserVO setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getPhone() {
        if (PhoneUtil.isPhone(this.phone)){
            phone = StrUtil.hide(phone,3,9);
        }else {
            phone="---";
        }

        return phone;
    }

    public BidUserVO setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public Date getBidTime() {
        return bidTime;
    }

    public BidUserVO setBidTime(Date bidTime) {
        this.bidTime = bidTime;
        return this;
    }

    public BigDecimal getBigMoney() {
        return bigMoney;
    }

    public BidUserVO setBigMoney(BigDecimal bigMoney) {
        this.bigMoney = bigMoney;
        return this;
    }
}
